import { defHttp } from "@/utils/http";

// ERP 位置字典API
export const invtLocationApi = {
	// 获得位置字典分页
	invtLocationList: async (params: any) => {
		return await defHttp.get({ url: `/whs/invt-location/page`, params });
	},
	// 新增位置字典
	invtLocationCreate: async (data: any) => {
		return await defHttp.post({ url: `/whs/invt-location/create`, data });
	},

	// 修改位置字典
	invtLocationUpdate: async (data: any) => {
		return await defHttp.put({ url: `/whs/invt-location/update`, data });
	},

	// 删除位置字典
	invtLocationDelete: async (id: number) => {
		return await defHttp.delete({ url: `/whs/invt-location/delete?id=` + id });
	}
};
